package com.xinyue.user.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinyue.user.dao.CommentMapper;
import com.xinyue.user.pojo.Comment;
import com.xinyue.user.service.CommentService;

@Service
public class CommentServiceImpl implements CommentService {

	@Autowired
	private CommentMapper commentMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) throws Exception {
		return 0;
	}

	@Override
	public int insert(Comment record) throws Exception {
		return commentMapper.insert(record);
	}

	@Override
	public Comment selectByPrimaryKey(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Comment> selectAll() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKey(Comment record) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Comment> selectByNid(Integer nid)throws Exception {
		return commentMapper.selectByNid(nid);
	}
	
	

}
